<!--
 * @Author: luobei luobei@seewintech.com
 * @Date: 2023-02-23 20:43:19
 * @LastEditors: luobei luobei@seewintech.com
 * @LastEditTime: 2023-02-24 15:01:06
 * @FilePath: \ibuilds-web-system\src\views\systemManage\formManage\formDesign\packages\config\dynamic.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <el-form-item label="对齐方式">
      <el-select v-model="data.children.align" placeholder="对齐方式" clearable>
        <el-option label="居左" value="left" />
        <el-option label="居中" value="center" />
        <el-option label="居右" value="right" />
      </el-select>
    </el-form-item>
    <el-form-item label="头部对齐方式" label-width="110px">
      <el-select
        v-model="data.children.headerAlign"
        placeholder="对齐方式"
        clearable
      >
        <el-option label="居左" value="left" />
        <el-option label="居中" value="center" />
        <el-option label="居右" value="right" />
      </el-select>
    </el-form-item>
    <!-- <el-form-item label="表单格式">
      <el-select v-model="data.children.type" placeholder="表单格式" clearable>
        <el-option label="表格" value="" />
        <el-option label="表单" value="form" />
      </el-select>
    </el-form-item> -->
    <el-form-item v-if="data.children.type == 'form'" label="序号">
      <el-switch v-model="data.children.index" />
    </el-form-item>
    <el-form-item label="添加按钮">
      <el-switch v-model="data.children.addBtn" />
    </el-form-item>
    <el-form-item label="删除按钮">
      <el-switch v-model="data.children.delBtn" />
    </el-form-item>
  </div>
</template>

<script>
  export default {
    name: 'ConfigDynamic',
    props: ['data'],
  }
</script>
